#ifndef __RECORD_H__
#define __RECORD_H__

#include "typedef.h"

#define RECORD_HISTORY_FILE_LEN_MAX 1000*500 //单位字节
#define RECORD_HISTORY_MAX 1000  //每个文件最大存储记录条数，两个文件循环存储，
#define RECORD_CHARGING "record_waitup.txt"
#define RECORD_HISTORY1 "record_history1.txt"
#define RECORD_HISTORY2 "record_history2.txt"
#define RECORD_TMP      "record_tmp.txt" //删除时的临时文件
#define RECORD_CHARGING_DIR "charge"

void record_init(void);
void record_update(char_t *dno, char_t *str);
void record_save_to_history(const char *dno);
int32_t record_read_charging_whth_dno(const char_t *dno, char_t *buf, int32_t len);
int32_t record_read_charging_file_list(char_t *name_list, int32_t name_len, int32_t cnt);

#endif
